﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Dala.Samples.Bread_Crumb_Control
{
    public partial class bread_crumb : System.Web.UI.UserControl
    {
        #region Properties
        public string BreadCrumbTitle { get; set; }
        public string BreadCrumbMiddleTitle { get; set; }
        public string AncMiddleTitle { get; set; }
        #endregion

        public void BindBreadCrumbTwoItem()
        {
            lblTitleMiddle.InnerText = BreadCrumbMiddleTitle;
            lblTitleMiddle.Style.Add("float", "left");
            lblTitleMiddle.Style.Add("cursor", "pointer");
            spnSeparator.Style.Add("display", "block");
            spnTitle.InnerText = BreadCrumbTitle;
            ancMiddleTitle.HRef = AncMiddleTitle;
        }

        public void BindBreadCrumb()
        {
            spnTitle.InnerText = BreadCrumbTitle;
        }
    }
}